home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET
/
BCI NET Dec 94.iso
/
archives
/
applications
/
wp
/
fcmacros.lha
/
MakeFontTest
< prev
next >
Wrap
Text File
|
1994-03-29
|
2KB
|
74 lines
/* $Id: $ */
/**********************************************************************/
/*
* Final Copy II Arexx Macro - MakeFontTest
*
* Inserts samples of all fonts found in specified dirs
* (see path definitions and patterns below)
*
* Requires: Final Copy II
* Author: Stefan Winterstein (winter@cs.uni-sb.de)
* Status: Public Domain
*
*/
/**********************************************************************/
/*
* Here you can specify which fonts in which directories will be opened.
* Remember to adjust 'path.0' to the number of paths.
*/
path.1 = "SWOLFonts:Deco/#?"
path.1 = "SWOLFonts:Type/#?"
path.2 = "SWOLFonts:Sans/~(#?bold#?|#?italic#?)"
path.3 = "SWOLFonts:Serif/~(#?bold#?|#?italic#?)"
path.4 = "SWOLFonts:~(#?bold#?|#?italic#?)"
path.0 = 1
/**********************************************************************/
OPTIONS RESULTS
/*
* Create a sorted file containg all fonts we want to open
*/
fontfiles = ""
DO i=1 FOR path.0
ADDRESS COMMAND 'List >ram:fontlist.error "'||path.i||'" FILES LFORMAT=%p%n TO RAM:fontlist.'||i
fontfiles = fontfiles "RAM:fontlist."||i
END i
ADDRESS COMMAND 'Join' fontfiles 'TO RAM:fontlist.unsorted'
ADDRESS COMMAND 'Sort RAM:fontlist.unsorted TO RAM:fontlist'
/**********************************************************************/
/*
* Read fontlist file into variable 'fontlist.'
*/
i = 0
IF OPEN(.infile, "RAM:fontlist", "R") THEN DO
DO UNTIL EOF(.infile)
i = i +1
fontlist.i = READLN(.infile)
END
CALL CLOSE(.infile)
END
fontlist.0 = i-1
/* ADDRESS COMMAND 'Delete RAM:fontlist#?' */
/**********************************************************************/
/*
* Insert sample for all fonts from 'fontlist.' in FinalCopy
*/
'FontSize' 18
'Spacing OneHalf'
DO i=1 FOR fontlist.0
'Font' fontlist.i
'Type' "a" /* else will give old fontname below */
'Cursor left'
'Status FontName'
fontname = result
'Delete'
'Type' "Diese Schrift heißt" fontname||"."
'NewParagraph'
END i
/**********************************************************************/
EXIT